﻿using StepsManagerUILibrary;

namespace WPF_Example.View
{
    // IMPORTANT
    // If you cannot view the UserControl in the designer, you might have
    // Visual Studio 2010. Because the UserControl is inheriting from a 
    // class other than UserControl, the designer is crashing.
    // https://connect.microsoft.com/VisualStudio/feedback/details/551677/inherited-winforms-usercontrols-unusable-after-modification
    // 
    // To edit the control, replace the 'BaseWinformUserControl' on the line below
    // and put UserControl. When your changes are complete put back 'BaseWinformUserControl'
    public partial class Step4WinformHostedView : BaseWinformUserControl
    {
        private Step4WinformHostedView()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Constructor used to construct the Hosted Winform user control
        /// </summary>
        /// <param name="title">Title of the step</param>
        public Step4WinformHostedView(string title)
            : base(title)
        {
            InitializeComponent();

            label1.Text = string.Format("{0} Winform Hosted View!", title);
        }
    }
}
